//
//  MPAppButton.m
//  MarkPlatform
//
//  Created by xiao6 on 2017/12/19.
//  Copyright © 2017年 AT. All rights reserved.
//

#import "MPAppButton.h"

@implementation MPAppButton
- (void)setup {
    [super setup];
    self.clipsToBounds = YES;
    [self setBackgroundImage:[UIImage imageWithColor:[UIColor appColor]] forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage imageWithColor:[UIColor appColorHighlightd]] forState:UIControlStateHighlighted];
    [self setBackgroundImage:[UIImage imageWithColor:[UIColor appColorDisable]] forState:UIControlStateDisabled];
}

- (void)layoutSubviews {
    [super layoutSubviews];
    if (self.layer.cornerRadius != self.height / 2) {
        self.layer.cornerRadius = self.height / 2;
    }
}
@end
